<?php

use Illuminate\Database\Seeder;

class SalePromotionTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
         DB::table('sale_promotion')->insert([
         		 [ 
                               'path' =>'images/2.jpg',
              		           'gname' =>'test nike 男鞋 1',
              		           'pid' => 2,
              		           'gid' => 2,
              		           'sale_price' =>200,
              		           'sale_start_time' =>1506045635,
              		           'sale_end_time' =>1506060045,
              		           'sale_sort' => 0,
              		           'ad_address' => 1,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                          [ 
                               'path' =>'images/3.jpg',
              		           'gname' =>'test nike 女鞋 1',
              		           'pid' => 3,
              		           'gid' => 3,
              		           'sale_price' =>300,
              		           'sale_start_time' =>1506046235,
              		           'sale_end_time' =>1506060055,
              		           'sale_sort' => 0,
              		           'ad_address' => 2,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                          [ 
                                       'path' =>'images/4.jpg',
              		           'gname' =>'test nike 女鞋 2',
              		           'pid' => 4,
              		           'gid' => 4,
              		           'sale_price' =>500,
              		           'sale_start_time' =>1506046835,
              		           'sale_end_time' =>1506060065,
              		           'sale_sort' => 0,
              		           'ad_address' => 3,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                          [ 
                                      'path' =>'images/7.jpg',
              		           'gname' =>'test adidas 男鞋 1',
              		           'pid' => 7,
              		           'gid' => 7,
              		           'sale_price' =>500,
              		           'sale_start_time' =>1506047435,
              		           'sale_end_time' =>1506060095,
              		           'sale_sort' => 0,
              		           'ad_address' => 2,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                           [ 
                                      'path' =>'images/9.jpg',
              		           'gname' =>'test adidas 女鞋 1',
              		           'pid' => 9,
              		           'gid' => 9,
              		           'sale_price' =>280,
              		           'sale_start_time' =>1506048035,
              		           'sale_end_time' =>1506060115,
              		           'sale_sort' => 0,
              		           'ad_address' => 2,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                           [ 
                                       'path' =>'images/10.jpg',
              		           'gname' =>'test adidas 女鞋 2',
              		           'pid' => 10,
              		           'gid' => 10,
              		           'sale_price' =>350,
              		           'sale_start_time' =>1506048635,
              		           'sale_end_time' =>1506060125,
              		           'sale_sort' => 0,
              		           'ad_address' => 1,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                          [ 
                                        'path' =>'images/14.jpg',
              		           'gname' =>'test NewBalance 男鞋 2',
              		           'pid' => 14,
              		           'gid' => 14,
              		           'sale_price' =>900,
              		           'sale_start_time' =>1506049235,
              		           'sale_end_time' =>1506060165,
              		           'sale_sort' => 0,
              		           'ad_address' => 2,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                           [ 
                                        'path' =>'images/16.jpg',
              		           'gname' =>'test NewBalance 女鞋 2',
              		           'pid' => 16,
              		           'gid' => 16,
              		           'sale_price' =>500,
              		           'sale_start_time' =>1506049835,
              		           'sale_end_time' =>1506060185,
              		           'sale_sort' => 0,
              		           'ad_address' => 1,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                           [ 
                               'path' =>'images/17.jpg',
              		           'gname' =>'test NewBalance 童鞋 1',
              		           'pid' => 17,
              		           'gid' => 17,
              		           'sale_price' =>168,
              		           'sale_start_time' =>1506050435,
              		           'sale_end_time' =>1506060195,
              		           'sale_sort' => 0,
              		           'ad_address' => 2,
              		           'created_at' => date('Y-m-d H:i:s'),
              		           'updated_at' => date('Y-m-d H:i:s')],
                     ]);
    }
}
